package edu.csl.study.springboot.common.exception;

public class BusinessException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	protected String message ;
	
	protected String errorCode;
	
	public BusinessException(){
	}

	public BusinessException(String message) {
		super(message);
		this.message = message;
	}
	public BusinessException(String errorCode,String message) {
		super(message);
		this.message = message;
		this.errorCode = errorCode;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	@Override
	public String getMessage() {
		return  this.message;
	}
	

}
